.products-page {
  padding: 100px 0 80px;
  background: #F3F3F3;
  min-height: calc(100vh - 70px);
}

.products-page .products-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
}

.products-page .page-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.products-page .page-header h1 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 15px;
}

.products-page .page-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* 左侧分类侧边栏 */
.products-page .category-sidebar {
  width: 220px;
  background: #0071C1;
  border-radius: 12px;
  padding: 30px 0;
  position: sticky;
  top: 120px;
  height: fit-content;
  flex-shrink: 0;
}

.products-page .sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 30px;
}

.products-page .sidebar-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

.products-page .category-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.category-menu-toggle span {
  width: 20px;
  height: 2px;
  background: white;
  margin: 2px 0;
  transition: 0.3s;
}

.products-page .category-list {
  display: flex;
  flex-direction: column;
}

.products-page .category-item {
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  font-size: 0.95rem;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.3);
}

.category-item.active {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: white;
  font-weight: 600;
}

/* 公司信息样式 */
.products-page .company-info {
  padding: 20px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.products-page .company-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.products-page .company-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.products-page .company-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.products-page .company-value {
  color: white;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.3;
  flex: 1;
}

/* 右侧产品展示区域 */
.products-page .products-content {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.products-page .content-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.content-header h2 {
  font-size: 1.8rem;
  color: #1f2937;
  margin: 0 0 10px 0;
}

.content-header p {
  color: #6b7280;
  margin: 0;
  font-size: 1rem;
}

.products-page .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.loading-container,
.products-page .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-container p,
.error-container p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #6b7280;
}

.error-container p {
  color: #ef4444;
}

.products-page .no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 1.1rem;
}

.products-page .pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 20px 0;
}

@media (max-width: 1200px) {
  .products-page .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .products-page .products-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .products-page .category-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    padding: 20px;
  }
  
  .products-page .sidebar-header {
    margin-bottom: 0;
  }
  
  .category-menu-toggle {
    display: flex;
  }
  
  .products-page .category-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0071C1;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }
  
  .products-page .category-menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 10px 0;
  }
  
  .products-page .category-item {
    padding: 15px 30px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .category-item:hover {
    border-left-color: transparent;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .category-item.active {
    border-left-color: transparent;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .products-page .company-info {
    display: none;
  }
  
  .products-page .company-item {
    gap: 3px;
    margin-bottom: 6px;
  }
  
  .products-page .company-icon {
    font-size: 0.8rem;
  }
  
  .products-page .company-value {
    font-size: 0.8rem;
  }
  
  .products-page .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .products-page {
    padding: 80px 0 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }
  
  .products-page .category-sidebar {
    padding: 15px;
  }
  
  .products-page .sidebar-title {
    font-size: 1rem;
  }
  
  .products-page .category-item {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .products-page .company-info {
    display: none;
  }
  
  .products-page .company-icon {
    font-size: 0.75rem;
  }
  
  .products-page .company-value {
    font-size: 0.75rem;
  }
  
  .products-page .products-content {
    padding: 20px;
  }
  
  .content-header h2 {
    font-size: 1.5rem;
  }

  .products-page .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .products-page .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
